//
//  MessageCell.h
//  AirQuality
//
//  Created by Po on 15/9/17.
//  Copyright © 2015年 Po. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol MessageCellDelegate;

@interface MessageCell : UITableViewCell

@property (assign, nonatomic) id<MessageCellDelegate> delegate;

@property (weak, nonatomic) IBOutlet UIImageView *headImage;
@property (weak, nonatomic) IBOutlet UILabel *tittleLabel;
@property (weak, nonatomic) IBOutlet UILabel *detailLabel;
@property (weak, nonatomic) IBOutlet UIView *imageContentView;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imageContentHeight;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *detailHeight;

@property (retain, nonatomic) NSMutableArray * imageViewArray;

/**
 * 设置高度
 */

- (void)setTextHeight:(CGFloat)textHeight imagesHeight:(CGFloat)imageHeight images:(NSArray *)images;
@end

@protocol MessageCellDelegate <NSObject>

/**
 *  点击图片的代理
 */
- (void)MessageCell:(MessageCell *)cell didPressImageViewCount:(NSUInteger)count imageSize:(CGSize)size images:(NSArray *)images;

@end